package com.slipper.sfts.member.dao;

import java.util.List;

import com.slipper.sfts.api.member.bo.MemberBrokerAccountBO;
import org.apache.ibatis.annotations.Param;

/**
 * 会员交易账号
 */
public interface MemberBrokerAccountDao {
    
    int insert(MemberBrokerAccountBO bo);
    
    int update(MemberBrokerAccountBO bo);
    
    int delete(MemberBrokerAccountBO bo);

    MemberBrokerAccountBO queryBy(String id);
    
    List<MemberBrokerAccountBO> queryList(MemberBrokerAccountBO bo);

    List<MemberBrokerAccountBO> queryListByMemberId(String memberId);

    MemberBrokerAccountBO queryOneBy(
            @Param("memberId") String memberId,
            @Param("brokerAccountId") String brokerAccountId);

    MemberBrokerAccountBO lockBy(
            @Param("memberId") String memberId,
            @Param("brokerAccountId") String brokerAccountId);
}
